/**
 * @Author: xzw
 * @Description:通用基础定义
 * @Version: 1.0.0
 * @Date: 2021/3/1 下午11:29
 * @Copyright: MIN-Group；国家重大科技基础设施——未来网络北大实验室；深圳市信息论与未来网络重点实验室
 */

//package minsecurity

//存储引擎,默认是使用sqlite,支持用户显示配置

const PersistPlugin = {
	Sqlite:  0
}

//公钥算法
const PublicKeyAlgorithm = {
	SM2:  0
}

//签名算法
const SignatureAlgorithm = {
	SM2WithSM3:  0
}

//对称加密算法
const SymmetricAlgorithm = {
	SM4ECB:  0,
	SM4CBC:  1
}

//证书用途
const KeyUsage = {
	ContentCommitment: 0,
	DataEncipherment:  1,
	CertSign:          2
}

module.exports = {
    PersistPlugin: PersistPlugin,
    PublicKeyAlgorithm: PublicKeyAlgorithm,
	SignatureAlgorithm: SignatureAlgorithm,
    SymmetricAlgorithm: SymmetricAlgorithm,
	KeyUsage: KeyUsage
}